package com.tsing.cli.common.exception;

import lombok.Getter;

/**
 * 自定义异常类
 *
 * @author TheTsing
 */
@Getter
public class CustomException extends RuntimeException {

    private final int code;

    private final String description;

    public CustomException(ResponseCode responseCode) {
        super(responseCode.getDescription());
        this.code = responseCode.getCode();
        this.description = responseCode.getDescription();
    }

}
